<?php



class ProductsCatMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.ProductsCatMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(ProductsCatPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(ProductsCatPeer::TABLE_NAME);
		$tMap->setPhpName('ProductsCat');
		$tMap->setClassname('ProductsCat');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('PRODUCT', 'Product', 'VARCHAR' , 'PRODUCTS', 'ID', true, 255);

		$tMap->addColumn('CATORDER', 'Catorder', 'INTEGER', false, 11);

	} 
} 